package com.juntuo.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.juntuo.entity.ParkConclude;
import com.juntuo.entity.Token;
import com.juntuo.mapper.ParkConcludeMapper;
import com.juntuo.service.ParkConcludeService;
import com.juntuo.service.TokenService;
import com.juntuo.service.helper.CommonServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


/**
 * 简介：
 * 作者：Jason (chenxj@hadlinks.com)
 * 时间：2018/3/17 14:18
 */
@Service
public class ParkConcludeServiceImpl extends CommonServiceImpl<ParkConclude> implements ParkConcludeService {


    @Autowired
    private ParkConcludeMapper parkConcludeMapper;
    @Override
    public PageInfo<Map<String,Object>> selectByCompanyId(int pageNumber, int pageSize, Integer companyId) {
        PageHelper.startPage(pageNumber,pageSize);
         PageInfo pageInfo= new PageInfo(parkConcludeMapper.selectByCompanyId(companyId));
        return pageInfo;
    }
}
